<!DOCTYPE html>
<html>
<head>
    <title>管理员管理</title>
</head>
<body class="layui-layout-body">
    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div class="body_right">
            <h4 class="nav_title">角色管理
            <a href="javascript:openwinx('添加角色','/admin/role/form.htm','800','600');" class="add_btn">添加</a>
            </h4>
            <table class="layui-table mytable" lay-even="" lay-skin="nob">
                <thead>
	                <tr>
	                    <th>编号</th>
	                    <th>角色名称</th>
	                    <th>描述</th>
	                    <th>是否启用</th>
	                    <th>创建时间</th>
	                    <th>操作</th>
	                </tr>
                </thead>
                <tbody>
                	    <#list roles as item>
                    <tr>
                    	<td>${item.roleId}</td>
                        <td>${item.roleName}</td>
                        <td>${item.description}</td>
                        <td>
                        	<#if item.enabled == "Y">是<#else>否</#if>
                        </td>
                        <td>${item.createTime?string('yyyy-MM-dd HH:mm:ss')}</td>
                        <td>
                        
                        	  <button class="layui-btn layui-btn layui-btn-xs"  onclick="openwinx('编辑','/admin/role/edit.htm?roleId=${item.roleId}','800','600')" ><i class="layui-icon">&#xe642;</i>编辑</button>
			      		  <button class="layui-btn-danger layui-btn layui-btn-xs"  onclick="xconfirm('确认是否删除','/admin/role/delete.htm',{roleId:'${item.roleId}'});" href="javascript:;" ><i class="layui-icon">&#xe640;</i>删除</button>
                        
                        </td>
                    </tr>
                    </#list>
                    
                </tbody>
            </table>

        </div>
     </div>
</body>
</html>